using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace MRSite.Entity
{
    /// <summary>
    /// 会员层级表
    /// </summary>
    [Table(Name = "customer_levels")]
    public class CustomerLevels : Entity
    {
        /// <summary>
        ///自增ID
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        ///会员级别名称
        /// </summary>
        [Column(Name = "level_name")]
        public String level_name { get; set; }

        /// <summary>
        ///会员等级值
        /// </summary>
        [Column(Name = "grade")]
        public int grade { get; set; }

        /// <summary>
        ///   注册费用
        /// </summary>
        [Column(Name = "level_fee")]
        public Decimal level_fee { get; set; }


        /// <summary>
        /// 升级所需贡献值
        /// </summary>
        [Column(Name = "upgrade_point")]
        public int upgrade_point { get; set; }



        /// <summary>
        /// 赠送积分
        /// </summary>
        [Column(Name = "zengsong_point")]
        public int zengsong_point { get; set; }



        /// <summary>
        /// 上一级分销奖励 给推荐人的奖励(根据被推会员的级别来定)
        /// </summary>
        [Column(Name = "fenxiao")]
        public decimal fenxiao { get; set; }

        /// <summary>
        /// 升级小区团队业绩 上二级分销奖励 给推荐人的奖励(根据被推会员的级别来定)
        /// </summary>
        [Column(Name = "fenxiao2")]
        public decimal fenxiao2 { get; set; }

        /// <summary>
        /// 升级团队业绩 上三级分销奖励 给推荐人的奖励(根据被推会员的级别来定)
        /// </summary>
        [Column(Name = "fenxiao3")]
        public decimal fenxiao3 { get; set; }




        /// <summary>
        /// 升级所需直推人数
        /// </summary>
        [Column(Name = "zhitui_num")]
        public int zhitui_num { get; set; }

        /// <summary>
        /// 升级所需直推等级
        /// </summary>
        [Column(Name = "zhitui_level")]
        public int zhitui_level { get; set; }


        /// <summary>
        /// 升级所需直推人的贡献值
        /// </summary>
        [Column(Name = "zhitui_score")]
        public int zhitui_score { get; set; }


        /// <summary>
        /// 升级所需 团队人数
        /// </summary>
        [Column(Name = "teamnum")]
        public int teamnum { get; set; }


        /// <summary>
        /// 升级所需 小区业绩(除最大那个区外)
        /// </summary>
        [Column(Name = "smallteamnum")]
        public int smallteamnum { get; set; }

        /// <summary>
        /// 升级小区团队业绩  
        /// </summary>
        [Column(Name = "smallteamyeji")]
        public decimal smallteamyeji { get; set; }

        /// <summary>
        /// 升级总团队业绩 
        /// </summary>
        [Column(Name = "totalteamyeji")]
        public decimal totalteamyeji { get; set; }


        /// <summary>
        /// 团队级差奖励 百分比
        /// </summary>
        [Column(Name = "teamjl")]
        public decimal teamjl { get; set; }

        /// <summary>
        /// 平级直推奖励 团队平级业绩分红 百分比
        /// </summary>
        [Column(Name = "pingjijl")]
        public decimal pingjijl { get; set; }

        /// <summary>
        /// 拼团长红包封顶  加权分红 
        /// </summary>
        [Column(Name = "fenghongPer")]
        public decimal fenghongPer { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "remark")]
        public String remark { get; set; }

    }
}


